package com.wtf.generator;

import com.wtf.generator.config.AppConfig;
import com.wtf.generator.executor.DsInitExecutor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
@Slf4j
@SpringBootApplication
public class WtfGeneratorApplication {

	public static void main(String[] args) {
		SpringApplication.run(WtfGeneratorApplication.class, args);
		log.info("【午托饭-代码生成器】-【{}】-【端口】-【{}】", AppConfig.app,AppConfig.port);
		dsStoreInit();
	}

	private static void dsStoreInit() {
		new Thread(() -> DsInitExecutor.doInit()).start();
	}
}